package com.yami.shop.user.common.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 会员等级
 *
 * @author LGH
 * @date 2020-02-26 16:03:14
 */
@Data
@TableName("tz_user_rights")
public class UserRights implements Serializable{
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId
    @Schema(description = "权益id")
    private Long rightsId;

    @Schema(description = "权益名称")
    private String rightsName;

    @Schema(description = "权益图标")
    private String icon;

    @Schema(description = "权益简介")
    private String description;

    @Schema(description ="权益中文简介")
    @TableField(exist = false)
    private String descriptionCn;

    @Schema(description ="权益英文简介")
    @TableField(exist = false)
    private String descriptionEn;

    @Schema(description = "0系统核销 1商家线下核销")
    private Integer serviceType;

    @Schema(description = "状态：-1:禁用 1：正常(仅用于系统核销)")
    private Integer status;

    @Schema(description = "顺序")
    private Integer seq;

    @Schema(description ="权益国际化")
    @TableField(exist = false)
    private List<UserRightsLang> userRightsLangList;
}
